﻿using System;
using System.Collections.Generic;
using System.Text;
using WeChatSDK.WeChatDto.Conversation.ReceivingMessage;
using WeChatSDK.WeChatDto.Conversation.ReceivingMessage.EventMessage;

namespace BCService.WeChatComponent.WeChatHandleService.EventMessageService.ScanCodePushEventMessageService
{
    /// <summary>
    /// 扫码推事件的事件处理
    /// </summary>
    public class ScanCodePushEventMessageService : IWeChatMessageHandle
    {
        public string HandleMessage(ReceivingMessageDto message)
        {
            ScanCodePushEventMessageDto scanCodePushEventMessageDto = message as ScanCodePushEventMessageDto;
            if (scanCodePushEventMessageDto.Event == "scancode_push")
            {
                ScancodePushProcess(scanCodePushEventMessageDto);
            }
            else
            {
                ScancodeWaitMessageProcess(scanCodePushEventMessageDto);
            }
            throw new NotImplementedException();
        }

        private void ScancodePushProcess(ScanCodePushEventMessageDto scanCodePushEventMessageDto)
        {

        }
        private void ScancodeWaitMessageProcess(ScanCodePushEventMessageDto scanCodePushEventMessageDto)
        {

        }
    }
}
